const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')

/**
 * @type {webpack.Configuration}
 */
module.exports = {
  mode: 'development',
  plugins: [
    new HtmlWebpackPlugin({
      template: 'index.html'
    })
  ],
  devtool: 'source-map',
  devServer: {
    open: true,
    hot: true
  }
}
